package com.cn.mapper.dao.db5.TechnologicalStandard;

import com.cn.bean.pojo.TechnologicalStandard.GrindingProcessStandardMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReplaceProcessStandardsDao {
    List<GrindingProcessStandardMain> selectReplaceProcessStandards(@Param("page")int page, @Param("limit")int limit, @Param("equipmentStructure") String equipmentStructure,@Param("structureName") String structureName,@Param("name") String name,@Param("standardType") String standardType, @Param("procedures") String procedures);
    int addReplaceProcessStandards(@Param("grindingProcessStandardMain")GrindingProcessStandardMain grindingProcessStandardMain);
    List<GrindingProcessStandardMain> selectReplaceProcessStandardsId(@Param("id")int id);
    int deleteGrindingProcessStandardMain(@Param("id")int id);
    int updateGrindingProcessStandardMain(@Param("grindingProcessStandardMain")GrindingProcessStandardMain grindingProcessStandardMain);

    int updateShGrindingProcessStandardMain(@Param("id")int id,@Param("state")int state,@Param("reviewer")String reviewer,@Param("reviewerID")String reviewerID,@Param("reviewTime")String reviewTime);

    Integer selectShZT(@Param("id")int id);
}
